import request from "@/utils/request";

// 条件查询
export const commentFindBySearchApi = (params:any)=>request.get<any,any>('/comment/search',{params})

// 检索全部评论用户
export const commentFindConsumerApi = ()=>request.get<any,any>('/comment/consumer')

// 新增or修改
export const commentSaveApi = (commentData:any)=>request.post<any,any>('/comment/save',commentData)

// 检索歌曲
export const commentFindSongApi = (id:any)=>request.get<any,any>('/comment/song/'+id)

// 检索歌手
export const commentFindSingerApi = (id:any)=>request.get<any,any>('/comment/singer/'+id)

// 检索歌单
export const commentFindSongListApi = (id:any)=>request.get<any,any>('/comment/songList/'+id)

// 删除评论
export const commentDeleteApi = (id:any)=>request.delete<any,any>('/comment/'+id)

// 点赞
export const commentUpApi = (commentData:any)=>request.post<any,any>('/comment/up',commentData)

// 反对
export const commentDownApi = (commentData:any)=>request.post<any,any>('/comment/down',commentData)